package io.renren.modules.generator.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2019/1/17
 * Time: 9:46
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Mapper
public interface SequenceDao extends BaseMapper<Integer>{

    Integer getCurrentValue(@Param("name") String name);
    Integer getNextValue(@Param("name") String name);
    void setCurrentValue(@Param("name") String name, @Param("value") String value);
}
